<!DOCTYPE html>
<html>
<head>
<include file="Include:meta" />
<title>账目明细-目的地运营集团数据管理平台</title>
<include file="Include:style" />
</head>
<body>
<include file="Include:header" />
<include file="Include:left" />
<div id="main">
	<!--搜索框
	<div class="crumbs">
		<div class="crumbs-text">账目明细 </div>
	</div>
	-->
	<div id="content">
		<div class="filter">
			<ul class="filter-order">
				起止时间:
				<input name="start" id="start" value="{$start}" type="text" class="form-control Wdate required-text w100" <literal>onclick="WdatePicker({dateFmt:'yyyy-MM',maxDate:'#F{$dp.$D(\'end\')}',startDate:'#F{$dp.$D(\'end\')}'})"</literal> readonly autocomplete="off">
				-
				<input name="end" id="end" value="{$end}" type="text" class="form-control Wdate required-text w100" <literal>onclick="WdatePicker({dateFmt:'yyyy-MM',minDate:'#F{$dp.$D(\'start\')}',startDate:'#F{$dp.$D(\'start\')}'})"</literal> readonly autocomplete="off">
				<button class="btn btndate ml10" type="button">搜索</button>
				<!--
				操作人:
				<input name="use" id="use" type="text" id="use" value="{$use}" class="form-control" style="width:250px;" placeholder="记账人或审核人或制单人" autocomplete="off">
				摘要:
				<input name="remark" id="remark" type="text" id="remark" value="{$remark}" class="form-control" style="width:250px;" placeholder="模糊查找摘要信息" autocomplete="off">
				-->
			</ul>
			<!--
			<ul class="filter-order">
				<div class="filter-item">
					<div class="filter-title clearfix">
						科目：
						<select name="subject_list" id="subject_list" class="form-control">
							<option value="-10"<if condition="$check_subject eq -10"> selected</if>>请选择科目</option>
							<foreach name="subject_list" item="vo">
							<option value="{$vo['ccode']}"<if condition="$check_subject eq $vo['ccode']"> selected</if>>{$vo['ccode_name']}</option>
							</foreach>
						</select>
						部门：
						<select name="deptment_list" id="deptment_list" class="form-control">
							<option value="-10"<if condition="$check_deptment eq -10"> selected</if>>请选择部门</option>
							<foreach name="deptment_list" item="vo">
							<option value="{$vo['cdepcode']}"<if condition="$check_deptment eq $vo['cdepcode']"> selected</if>>{$vo['cdepname']}</option>
							</foreach>
						</select>
						项目：
						<select name="project_list" id="project_list" class="form-control">
							<option value="-10"<if condition="$check_project eq -10"> selected</if>>请选择项目</option>
							<foreach name="project_list" item="vo">
							<option value="{$vo['cinvcode']}"<if condition="$check_project eq $vo['cinvcode']"> selected</if>>{$vo['cinvname']}</option>
							</foreach>
						</select>
						
					</div>	
				</div>
			</ul>
			-->
		</div>
		<div class="table-scrollx">
			<table class="table table-bordered table-hover table-hover-contact">
				<tr class="table-header fixed-table-header">
					<td width="50" class="nowrap">会计期间</td>
					<td width="50" class="nowrap">凭证类别字</td>
					<td width="50" class="nowrap">凭证编号</td>
					<td width="50" class="nowrap">制单日期</td>
					<td width="50" class="nowrap">制单人</td>
					<td width="50" class="nowrap">审核人</td>
					<td width="50" class="nowrap">记账人</td>
					<td width="50" class="nowrap">摘要</td>
					<td width="50" class="nowrap">科目</td>
					<td width="50" class="nowrap">金额</td>
					<td width="50" class="nowrap">部门</td>
					<td width="50" class="nowrap">项目</td>
				</tr>
				<if condition="$result eq NULL">
				<tr>
					<td colspan="12" class="text-center">暂无相关内容</td>
				</tr>
				</if>
				<foreach name="result" item="vo">
					<tr>
						<td class="nowrap">{$vo['iyear']}-{$vo['iperiod']}</td>
						<td>{$vo['csign']}</td>
						<td>{$vo['ino_id']}</td>
						<td>{$vo['dbill_date']}</td>
						<td>{$vo['cbill']}</td>
						<td>{$vo['ccheck']}</td>
						<td>{$vo['cbook']}</td>
						<td>{$vo['remark']}</td>
						<td>{$vo['ccode_name']}</td>
						<td>{:float_money($vo['md'])}</td>
						<td>{$vo['cdepname']}</td>
						<td>{$vo['cinvname']}</td>
					</tr>
				</foreach>
			</table>
		</div>
		<div class="pages">{$page}</div>
	</div>
</div>
<include file="Include:javascript" />
<script type="text/javascript">
$(function(){
	//搜索
	$(".btndate").on("click",function(){
		<!-- var check_subject = $("#subject_list option:selected").val(); -->
		<!-- var check_deptment = $("#deptment_list option:selected").val(); -->
		<!-- var check_project = $("#project_list option:selected").val(); -->
		var start_date = $("#start").val();
		var end_date = $("#end").val();
		<!-- var use = $("#use").val(); -->
		<!-- var remark = $("#remark").val(); -->
		var href = "__APP__/Report/detail";
		<!-- if(check_subject!=-10){ -->
			<!-- href=href+"/check_subject/"+check_subject; -->
		<!-- } -->
		<!-- if(check_deptment!=-10){ -->
			<!-- href=href+"/check_deptment/"+check_deptment; -->
		<!-- } -->
		<!-- if(check_project!=-10){ -->
			<!-- href=href+"/check_project/"+check_project; -->
		<!-- } -->
		<!-- if(use!=''){ -->
			<!-- href=href+"/use/"+use; -->
		<!-- } -->
		<!-- if(remark!=''){ -->
			<!-- href=href+"/remark/"+remark; -->
		<!-- } -->
		if(start_date!=""){
			href=href+"/start_date/"+start_date;
		}
		if(end_date!=""){
			href=href+"/end_date/"+end_date;
		}
		window.location.href=href;
	});
	//过滤信息
	<!-- $(document).on("change","[name='subject_list']",function(){ -->
		<!-- var val = $(this).val(); -->
		<!-- window.location.href="__APP__/Report/detail/check_project/{$check_project}/check_deptment/{$check_deptment}/check_subject/"+val; -->
	<!-- }); -->
		
	<!-- $(document).on("change","[name='deptment_list']",function(){ -->
		<!-- var val = $(this).val(); -->
		<!-- window.location.href="__APP__/Report/detail/check_project/{$check_project}/check_subject/{$check_subject}/check_deptment/"+val; -->
	<!-- }); -->
	
	<!-- $(document).on("change","[name='project_list']",function(){ -->
		<!-- var val = $(this).val(); -->
		<!-- window.location.href="__APP__/Report/detail/check_deptment/{$check_deptment}/check_deptment/{$check_deptment}/check_project/"+val; -->
	<!-- }); -->
});
</script>
</body>
</html>